package org.jeecg.trace.entity;

import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @Description: 不良录入明细
 * @Author: LiCY
 * @Date:   2023-11-28
 * @Version: V1.0
 */
@Data
@TableName("qis_reinspect_value")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="qis_reinspect_value对象", description="不良录入明细")
public class QisReinspectValue implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键*/
	@Excel(name = "主键", width = 15)
    @ApiModelProperty(value = "主键")
    @TableId
    private Integer recId;

	/**产线或产线组*/
	@Excel(name = "产线或产线组", width = 15)
    @ApiModelProperty(value = "产线或产线组")
    private String line;

	/**工单ID*/
	@Excel(name = "工单ID", width = 15)
    @ApiModelProperty(value = "工单ID")
    private String woid;

	/**序列号*/
	@Excel(name = "序列号", width = 15)
    @ApiModelProperty(value = "序列号")
    private String unitsn;

	/**不良配置表ID*/
	@Excel(name = "不良描述", width = 15,dictTable = "qis_reinspect_cfg", dicText = "DESCRIPTION", dicCode = "REC_ID")
    @ApiModelProperty(value = "不良配置表ID")
    private Integer cfgid;

    /**数量*/
    @ApiModelProperty(value = "数量")
    @TableField(exist = false)
    private Integer num;

	/**处理类型(1= 返工  2= 跳站 3= 报废 4= 锁定)*/
	@Excel(name = "处理类型", width = 15,dicCode = "reinspectType")
    @ApiModelProperty(value = "处理类型")
    @Dict(dicCode = "reinspectType")
    private String type;

	/**处理方案CODE*/
	@Excel(name = "处理方案CODE", width = 15)
    @ApiModelProperty(value = "处理方案CODE")
    private String rwkCode;

	/**班次日期*/
	@Excel(name = "班次日期", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "班次日期")
    private Date shiftDate;

	/**班次*/
	@Excel(name = "班次", width = 15)
    @ApiModelProperty(value = "班次")
    private String shift;

	/**操作人*/
	@Excel(name = "操作人", width = 15)
    @ApiModelProperty(value = "操作人")
    private String user;

	/**备注*/
	@Excel(name = "备注", width = 15)
    @ApiModelProperty(value = "备注")
    private String remark;

	/**操作时间*/
	@Excel(name = "操作时间", width = 15, format = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date ctime;
}
